import 'dart:io';

import 'package:cli_time/cli_time.dart';
import 'package:cli_time/utils/file_util.dart';
import 'package:test/test.dart';

void main() {
  test('calculate', () async {
    expect(calculate(), 42);

    String path = Directory.current.path;

    String s2 = "$path/s2";
    String sh = "$path/sh";
    String fileType = ".dart";
    String mySh = "$path/sh/my.sh";

    await FileUtil.writeText(mySh, """#!/bin/sh \n # 记录一下开始时间 \necho "//"+ `date` >> log$fileType \necho '//finish' >> log$fileType""");

    // await FileUtil.copyDirectory(sh, s2);

    print(path);
  });
}
